package com.smxy.daydayup.service.serviceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.smxy.daydayup.mapper.QuestionSortMapper;
import com.smxy.daydayup.pojo.QuestionSort;
import com.smxy.daydayup.service.QuestionSortService;

import java.util.List;

/**
  * @team daydayup
  * @time 2021-12-06 21:45
  */
@Service
public class QuestionSortServiceImpl implements QuestionSortService{

    @Resource
    private QuestionSortMapper questionSortMapper;

    @Override
    public int deleteByPrimaryKey(Long questionSortId) {
        return questionSortMapper.deleteByPrimaryKey(questionSortId);
    }

    @Override
    public int insert(QuestionSort record) {
        return questionSortMapper.insert(record);
    }

    @Override
    public int insertSelective(QuestionSort record) {
        return questionSortMapper.insertSelective(record);
    }

    @Override
    public QuestionSort selectByPrimaryKey(Long questionSortId) {
        return questionSortMapper.selectByPrimaryKey(questionSortId);
    }

    @Override
    public int updateByPrimaryKeySelective(QuestionSort record) {
        return questionSortMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(QuestionSort record) {
        return questionSortMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<QuestionSort> selectAll() {
        return questionSortMapper.selectAll();
    }

}
